<template>
  <div class="navbar">
    <img src="../assets/cat.png" class="logo" alt="Cat Logo" />
    <el-row>
      <el-text size="large">一个简单的物料信息记录系统</el-text>
    </el-row>
    <div class="button-container">
      <router-link to='/material'>
        <el-button type="primary">物料记录</el-button>
      </router-link>
      <div class="split"></div>
      <router-link to='/repository'>
        <el-button type="primary">库存记录</el-button>
      </router-link>
    </div>
  </div>
</template>

<style>
.navbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.split {
  padding: 10px;
}

.logo {
  width: 50px;
  height: 45px;
  margin-bottom: 10px;
}

.button-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
</style>

<script>
export default {
  name: 'NavBar',
}
</script>